From b94444ee0787d546310ba826ed619e1db38d3571 Mon Sep 17 00:00:00 2001 From: Osamu Aoki Date: Sat, 2 Nov 2013 12:18:52 +0900 Subject: [PATCH] Add the python-opencc package ship opencc.py module build with python2 --- debian/changelog | 7 +++++++ debian/control | 12 +++++++++++- debian/python-opencc.install | 1 + debian/rules | 2 +- 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 debian/python-opencc.install diff --git a/debian/changelog b/debian/changelog index 6b7734c..b3ca8d7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +opencc (0.4.3-2) UNRELEASED; urgency=low + + * Add the python-opencc package to support the Python binding. + Closes: #694993 + + -- Osamu Aoki Sat, 02 Nov 2013 12:17:51 +0900 + opencc (0.4.3-1) experimental; urgency=low * New upstream release. diff --git a/debian/control b/debian/control index cc5b105..17526bd 100644 --- a/debian/control +++ b/debian/control @@ -5,7 +5,7 @@ Uploaders: LI Daobing , Asias He , YunQiang Su , Osamu Aoki -Build-Depends: cmake, debhelper (>= 9), dpkg-dev (>= 1.16.1.1~) +Build-Depends: cmake, debhelper (>= 9), dpkg-dev (>= 1.16.1.1~), python-all Standards-Version: 3.9.4 Section: libs Homepage: http://code.google.com/p/opencc @@ -47,6 +47,16 @@ Description: simplified-traditional chinese conversion library - development . This package includes the development support files. +Package: python-opencc +Section: python +Architecture: all +Depends: libopencc1, ${misc:Depends}, ${python:Depends} +Description: simplified-traditional chinese conversion library - Python support + opencc is a library for converting character between traditional chinese and + simplified chinese. + . + This package includes the Python binding. + Package: libopencc-dbg Section: debug Priority: extra diff --git a/debian/python-opencc.install b/debian/python-opencc.install new file mode 100644 index 0000000..8afd143 --- /dev/null +++ b/debian/python-opencc.install @@ -0,0 +1 @@ +src/wrapper/python/opencc.py usr/share/pyshared diff --git a/debian/rules b/debian/rules index 6c1acdb..36a5a8e 100755 --- a/debian/rules +++ b/debian/rules @@ -9,7 +9,7 @@ CFLAGS += $(CPPFLAGS) DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) %: - dh $@ + dh $@ --with python2 override_dh_auto_configure: dh_auto_configure -- \ -- 2.30.2